project(chelper_ut)

# include chelper code
include_directories(${PROJECT_NAME} PRIVATE "../src")

include_directories(${CMAKE_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

# include all c++ code
file(GLOB_RECURSE UT_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    "*.cpp"
    )

# generate file
add_executable(${PROJECT_NAME} ${UT_SRCS})

# add libraries
target_link_libraries(${PROJECT_NAME} PRIVATE
    _utils
    chelper::_memory
    glog::glog
    gtest)